//全局搜索货品脚本

function search_goods(type)
{
	this.type = type;
}

search_goods.prototype.opts_height = 0;
search_goods.prototype.opts_length = 0;

search_goods.prototype.init = function()
{
	this.prototype.opts_length = $('.options-wrapper .option').length;
	this.prototype.opts_height = this.opts_length * $('.options-wrapper .option').height();
}()

search_goods.prototype.extend_options = function()
{
	$('.options-wrapper ul').height(this.prototype.opts_height);
	alert(this.prototype.opts_height);
}